﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Tibia
{
    public partial class Form1 : Form
    {
        Objects.Player player;
        MagUtil util = new MagUtil();
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            /*Objects.Client client = Util.ClientChooser.ShowBox();
            if (client == null)
            {
                MessageBox.Show("No active client.");
                Application.Exit();
            }
            if (client.LoggedIn)
                player = client.GetPlayer();*/

        }

        #region Main tab

        private void login_Click(object sender, EventArgs e)
        {
            for (int i = 0; i <= 100; i++)
            {
                logging.Value = i;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            infoBox.Enabled = true;
            infoBox.Items.Add("Próba");
            charactersBox.Items.Add("ja");
        }

        #endregion

        #region Characters tab

        private void addCharacter_Click(object sender, EventArgs e)
        {
            util.createNewCharacter(name.Text, accounts.Text);
        }

        #endregion

        #region Accounts tab

        private void addAccount_Click(object sender, EventArgs e)
        {
            util.createNewAccount(tabAccountsName.Text, tabAccountsPassword.Text, tabAccountsEmail.Text, tabAccountsEmailPassword.Text);
        }

        #endregion

        #region help tab

        #endregion

    }
}
